{extend name="Public/public"}
{block name="title"}权限列表{/block}
{block name="main"}
  <div class="page_title">
       <h2 class="fl">权限列表</h2>     
      </div>
      <span class="item_name" style="width:120px;">权限：
      {$datas.name}
      </span><br>
       <form action="/power/update" method="post">
      <input type="hidden"name="details"value="{$details}">
      {foreach name="list" item="row"}
   
         {if condition="$row.pid eq 0"}
         <div style="font-size:20px;font-family:仿宋;font-weight:bold;color:red">{$row.name}</div>{elseif condition="$row.pid eq 1"}
          <input type="checkbox" checked value="{$row.id}" name="node[]" disabled="disabled"><span class="item_name" style="font-size:15px;font-family:黑体;">{$row.name}</span>
         {else/}
       <input type="checkbox" {if condition="in_array($row['id'],$arr)"}checked{/if} value="{$row.id}" name="node[]"><span class="item_name" style="font-size:15px;font-family:黑体;">{$row.name}</span>
           {/if}

       {/foreach} 
       <br>

        <input type="submit" class="link_btn" value="修改" style="width:80px;background:#438EB9;color:white;margin-top:20px"/>
        </form>
{/block}
